package com.example.test622.util;

import com.example.test622.MainActivity;
import com.umeng.socialize.ShareAction;
import com.umeng.socialize.bean.SHARE_MEDIA;
import com.umeng.socialize.media.UMWeb;

public class ClassA {
    public static void main(MainActivity activity){


        UMWeb web = new UMWeb("https://www.baidu.com/");
            web.setTitle("This is music title");//标题
//                web.setThumb(thumb);//缩略图
            web.setDescription("my description");//描述
        ShareAction shareAction = new ShareAction(activity);
        shareAction.withMedia(web).setDisplayList(SHARE_MEDIA.QQ, SHARE_MEDIA.WEIXIN).open();

//                    .withMedia(web)
//                    .setDisplayList(SHARE_MEDIA.QQ, SHARE_MEDIA.WEIXIN)
//                    .open()

    }
}
